PROG		= gtableauparm

#SRCS     = $(wildcard *.cpp)
SRCS		= Device.cpp CommentDialog.cpp SaveToFileDialog.cpp PrintFormOperation.cpp DeviceTreeView.cpp  DeviceDetailDialog.cpp  mainwindow.cpp gtableauparm.cpp 
OBJS		= $(SRCS:.cpp=.o)
#CXXFLAGS	= -O2 -Wall -Werror -ansi `pkg-config gtkmm-2.4 --cflags`
CXXFLAGS	= -O2 -Wall  `pkg-config gtkmm-2.4 --cflags`
LDLIBS		= -lpthread -lparted `pkg-config gtkmm-2.4 --libs`
INCLUDE		=
DEPFILE		= deps.mak

.PHONY: clean

$(PROG): $(OBJS)
	$(CXX) $^ $(LDLIBS) -o $@

# How to make the object files:
.cpp.o:
	$(CXX) $(CXXFLAGS) -c $<

deps:
	$(CXX) -MM $(CXXFLAGS) $(SRCS) > $(DEPFILE)

# Cleaning target (only works with fileutils):
clean:
	$(RM) $(OBJS) $(PROG)

-include $(DEPFILE)

